Revert "GtkStack: Render background and chain up gtk_widget_draw ()."
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Jul 2014 04:33:19 +0000 (00:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Jul 2014 04:33:19 +0000 (00:33 -0400)
This reverts commit f6695b962ff6462cfc8250f949505a17d0d9df6d.

gtk/gtkstack.c

index b83825b2ae26745b40ceaa5558f82b4ac7244c2f..70611f44acd5dc78a6eefae8c1e63021abd682a1 100644 (file)
@@ -1772,14 +1772,8 @@ gtk_stack_draw (GtkWidget *widget,
 {
   GtkStack *stack = GTK_STACK (widget);
   GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
-  GtkStyleContext *context;
-  GtkAllocation allocation;
   cairo_t *pattern_cr;
 
-  context = gtk_widget_get_style_context (widget);
-  gtk_widget_get_allocation (widget, &allocation);
-  gtk_render_background (context, cr, 0, 0, allocation.width, allocation.height);
-
   if (priv->visible_child)
     {
       if (priv->transition_pos < 1.0)
@@ -1836,7 +1830,7 @@ gtk_stack_draw (GtkWidget *widget,
                                       cr);
     }
 
-  return GTK_WIDGET_CLASS (gtk_stack_parent_class)->draw (widget, cr);
+  return TRUE;
 }
 
 static void